<template lang="html">
  <div class="login-top">
    <span @click='cancelClick'>取消</span>
    <router-link tag='span' to='/register'>注册</router-link>
  </div>
</template>

<script>
export default {
  name:'LoginTop',
  methods:{
    cancelClick(){
      window.history.back()
    }
  }
}
</script>

<style lang="less" scoped>
.login-top{
  height: 0.88rem;
  line-height: 0.88rem;
  width: 100%;
  padding: 0 0.2rem;
  box-sizing: border-box;
  color: #43bf92;
  font-size: 0.36rem;
  span{
    &:first-child{
      float: left;
    }
    &:last-child{
      float: right;
    }
  }
}
</style>
